﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using csvm2.message.contract;
using csvm2.pin.contract;

namespace csvm2.recordbuilder
{
    public class RecordBuilder : IRecordBuilder
    {
        public void ProcessLine(string line)
        {
            if (line != null)
                this.OnRecord(new Record(new[] { line, ":::" + line }));
            else
                this.OnRecord(null);
        }

        public event Action<Record> OnRecord;
    }
}
